package net.wangds.persistence.columnoriented.entity;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.SuperBuilder;
import net.wangds.data.impl.IdCreateDisable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 表字典.
 * <p></p>
 *
 * @author 王东石 2020/10/30 16:10.
 */
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
@Entity
@Table(name="dict_tables")
public class DictTableEntity extends IdCreateDisable {

    /**
     * 方案名.
    */
    @Getter
    @Setter
    @Column
    private String schema;

    /**
     * 表名.
     */
    @Column
    @Getter
    @Setter
    private String tablename;

    /**
     * 显示名.
     */
    @Column
    @Getter
    @Setter
    private String displayname;

    /**
     * 表分类.
     * <p>主数据表、字典数据表、指标表，事实表.</p>
     */
    @Column
    @Getter
    @Setter
    private TableCateEnum cate;

    /**
     * 表类型.
     * <p>行表或列表.</p>
     */
    @Column
    @Getter
    @Setter
    private TableTypeEnum type;

    /**
     * 实体类类型.
     */
    @Column(length=2000)
    @Getter
    @Setter
    private String beanClass;

    /**
     * 列实体类型.
     */
    @Column(length=2000)
    @Getter
    @Setter
    private String fieldClass;
    /**
     * 备注.
     */
    @Getter
    @Setter
    @Column(length=1000)
    private String memo;


}
